package com.xiangge.domain;

public class Card {
    // 根据题目定义对象属性：花色、点数  行为：展示牌面
    // 使用私人权限修饰符private
    private String cardSuit;
    private String points;
    // 定义对象的行为
    public void showCard(){
        System.out.println(cardSuit+points);
    }
    // 因为使用了private权限修饰符，要对每一个对象进行公开的数据拿取和设置
    public String getCardSuit() {
        return cardSuit;
    }

    public void setCardSuit(String cardSuit) {
        this.cardSuit = cardSuit;
    }

    public String getPoints() {
        return points;
    }

    public void setPoints(String points) {
        this.points = points;
    }
    // 创建无参构造方法
    public Card() {
    }
    // 创建有参构造方法
    public Card(String cardSuit, String points) {
        this.cardSuit = cardSuit;
        this.points = points;
    }
}
